#include "precompile.h"

#include "ImageItemPresentation.h"

#include "document/IImageItem.h"
#include "document/Types.h"

ImageItemPresentation::ImageItemPresentation()
{
}

ImageItemPresentation::~ImageItemPresentation()
{

}

void ImageItemPresentation::Present(Graphics* graphics,PresentationContext& context)
{
	sys::InterfacePtr<IImageItem> pIFImageItem(context.GetTarget());
	
	Image image(pIFImageItem->getPath());
	graphics->DrawImage(image,pIFImageItem->Rectangle());
}